import { HttpClient } from "../../../../service/Http/HttpClient";
/**用能概况 开始*/
//分项列表
export const getBaseDeviceType = () => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/basecfg/device/getBaseDeviceType", {
    method: "POST",
    headers: {},
  });
};
//分项用能概况
export const situation = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/subentry/situation", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//单分项同比
export const situationCompare = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/subentry/situationCompare", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//单分项用能
export const situationEnergyTrend = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/subentry/situationEnergyTrend", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
/**用能概况 结束*/
/**用能统计 开始 */
//分项用能统计
export const statistical = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/subentry/statistical", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//分项用能统计导出
export const statisticalExportExcel = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/subentry/statisticalExportExcel", {
    method: "POST",
    headers: { qingqiuType: "file" },
    body: pream,
  });
};
///ems/subentry/analysis
//同比分析
export const analysis = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/subentry/analysis", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
/**用能统计 结束 */
